-- GENERATED SPELL FOR [XM-024 Pummeller] --


function spell0_33344(pUnit, Event) --@Arcing Smash,n/a--
pUnit:FullCastSpellOnTarget(8374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33344', 569, 1)
end

function spell1_33344(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_33344', 683, 1)
end

function spell2_33344(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33344', 612, 1)
end

function Sorts_33344(pUnit, Event)
local choix_sorts_33344 = math.random(0, 2)
if choix_sorts_33344 == 0 then
pUnit:RegisterEvent('spell0_33344', 1, 1)
end
if choix_sorts_33344 == 1 then
pUnit:RegisterEvent('spell1_33344', 1, 1)
end
if choix_sorts_33344 == 2 then
pUnit:RegisterEvent('spell2_33344', 1, 1)
end
end

function mob33344_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33344', math.random(1500, 3000), 1)
end

function mob33344_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33344_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33344_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33344, 1, 'mob33344_Action')
RegisterUnitEvent(33344, 2, 'mob33344_Leave')
RegisterUnitEvent(33344, 3, 'mob33344_Kill')
RegisterUnitEvent(33344, 4, 'mob33344_Die')
